| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | 'use strict'; |
||
| 6 | return function () { |
||
| 7 | return gulp.src(paths.ICON_FONT_PATH + '*.svg') |
||
| 8 | .pipe(plugins.debug({title: 'files:'})) |
||
| 9 | .pipe(plugins.iconfont({ |
||
| 10 | fontName: 'iconFont', // required |
||
| 11 | appendCodepoints: true // recommended option |
||
| 12 | })) |
||
| 13 | .on('codepoints', function (codepoints, options) { |
||
| 14 | gulp.src(paths.ICON_FONT_PATH + '_iconFont.scss') |
||
| 15 | .pipe(plugins.consolidate('lodash', { |
||
| 16 | glyphs: codepoints, |
||
| 17 | fontName: 'iconFont', |
||
| 18 | fontPath: '../fonts/icon-font/', |
||
| 19 | className: 'icon-font' |
||
| 20 | })) |
||
| 21 | .pipe(gulp.dest(paths.SRC_PATH + 'sass/base/')); |
||
| 22 | }) |
||
| 23 | .pipe(gulp.dest(paths.DIST_PATH + 'fonts/icon-font/')) |
||
| 24 | .pipe(plugins.browserSync.reload({stream: true})) |
||
| 25 | }; |
||
| 26 | }; |
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.